import mysql from 'mysql'
import mysqlConfig from '../config/mysql.js'

const connect = mysql.createConnection(mysqlConfig)

connect.connect()

connect.query(`select 1 + 1 as test`, (error, results, fields) => {
  if (error) throw error;
  console.log('The solution is: ', results[0]);
});

connect.end()
